#ifndef NODE_H_
#define NODESTU_H_

#include <stdio.h>
#include <stdlib.h>
#include "student.h"

struct Node{
       Student s;
       Node *next;
};

Node *head = NULL;

void InitStack(){
	head = NULL;
}

void Put(Student newS){
     Node *el = new Node;
     el->s = newS;
     el->next = head;
     head = el;
}

int Get(){
    if (head == NULL){
       //printf("Empty stack!\n");
	   return 1;
    }else{
       Node *pnt = head;
       head = pnt->next;
       Student s1 = pnt->s;
       free(pnt);
       s1.Show();
	return 0;
    }
}
#endif